<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- saved from url=(0055)https://itsc.uic.edu.cn/_mediafile/itsc/clock/time.html -->
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK">
        <title>Untitled Document</title>
        <script>
            //-------------可以把以下内容写进外部js文件中------------
            window.onload = getTime;
            //网页加载完就调用getTime()方法
            
                var today = new Date();
                //获取当前系统时间
                var hours = today.getHours();
                //获取小时
                var minutes = today.getMinutes();
                //获取分
                var seconds = today.getSeconds();
                //获取秒
                function getTime() {

                    seconds-=1;
                    if(seconds==-1){
                        minutes-=1;
                        seconds=59;
                    }

                    if(minutes==-1){
                        hours-=1;
                        minutes=59;
                    }

                    if(hours==-1)
                        hours=23;




                if (minutes < 10) {
                    //分小于10就在前面补0
                    minutes = "0" + minutes;
                }
                if (seconds < 10) {
                    //秒小于10就在前面补0
                    seconds = "0" + seconds;
                }
                //把时分秒拼起来得到时间
                var time = hours + ":" + minutes + ":" + seconds;
                //把时间显示在div上,您自己可以放在网页任何位置,反正时间就是time
                document.getElementById("div").innerHTML = time;
                //每隔一秒更新一次时间
                setTimeout("getTime()", 1000);
            }
            //-------------可以把以上内容写进外部js文件中------------
        </script>
    </head>
    <body>
        <div style="text-align: center; margin-top:80px">
            <img src="./Untitled Document_files/UIC-logo.jpg" alt="">
        </div>
        <div id="div" style="margin-top:20px; font-size:300px; font-weight:bold; text-align:center">22:01:12</div>
    </body>
</html>
